/*
 * 判断12个月份中每个月有多少天
 */
package switchdemo;
/**
 * 
 */

import java.util.Scanner;

public class Demo4 {

	public static void main(String[] args) {
		int s; // 存放用户输入的月份
		Scanner kb = new Scanner(System.in);
		System.out.println("请输入月份");
		s = kb.nextInt();
		switch (s) {
		case 12:
		case 10:
		case 8:
		case 7:	
		case 5:
		case 3:	
		case 1:	
			System.out.println("有31天");	
			break;
		case 11:
		case 9:
		case 6:	
		case 4:	
			System.out.println("有30天");
			break;
		case 2:
			System.out.println("有28天");
			break;
			
		default:
			System.out.println("输入不正确");
		}

	}

}
